package edu.ccut.saturn.workflow.finishTaskModule.code;

import java.util.HashMap;

import edu.ccut.saturn.component.DefaultComponent;
import edu.ccut.saturn.component.IParameterContext;

public class UpdateNewContentToOldOne extends DefaultComponent {
	@SuppressWarnings("unchecked")
	@Override
	public void execute(IParameterContext parameterContext) throws Exception {
		HashMap<String,String> customParamMap = (HashMap<String,String>)parameterContext.getParameterValue(0);
		HashMap<String,String> formdataValue = (HashMap<String,String>)parameterContext.getParameterValue(1);
		formdataValue.putAll(customParamMap);
		parameterContext.setParameter(0, formdataValue);
	}
}